package com.aiwei.tdjk.sample.service;///**


import com.aiwei.tdjk.common.service.BaseService;
import com.aiwei.tdjk.sample.entity.Sample;
import com.aiwei.tdjk.sample.repository.SampleRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class SampleService extends BaseService<Sample, Long> {


    @Resource
    private SampleRepository sampleRepository;

    @Resource
    public void setBaseService(SampleRepository sampleRepository) {
        super.setBaseRepository(sampleRepository);
    }


    private SampleRepository getSampleRepository() {
        return (SampleRepository) baseRepository;
    }


    public Sample findByName(String name) {
        return getSampleRepository().findByName(name);
    }

}
